import request from '@/utils/request'
import type { ShopResult, SetShopData } from './types'

/** 店铺接口 */
class APIStore {

    /** 获取店铺信息 */
    static getShop() {
        return request<any, ResponseData<ShopResult>>({
            url: '/getShop',
            method: 'POST'
        })
    }

    /** 修改店铺信息 */
    static setShop(data: SetShopData) {
        return request<any, ResponseData>({
            url: '/setShop',
            method: 'POST',
            data
        })
    }
}

export default APIStore
